/***** Copyright (c) 1999 Object Management Group. Unlimited rights to 
       duplicate and use this code are hereby granted provided that this 
       copyright notice is included.
 *****/

package org.omg.CORBA;

final public class PrincipalHolder implements org.omg.CORBA.portable.Streamable {

	public org.omg.CORBA.Principal value;

	public PrincipalHolder() {
	}

	public PrincipalHolder(org.omg.CORBA.Principal initial) {
		value = initial;
	}

	public void _read(org.omg.CORBA.portable.InputStream is) {
		value = is.read_Principal();
	}

	public void _write(org.omg.CORBA.portable.OutputStream os) {
		os.write_Principal(value);
	}

	public org.omg.CORBA.TypeCode _type() {
		return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_Principal);
	}

}
